//-----------------------------------------------------------------------
// <copyright file="a_SexService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_SexService
    {
        #region a_Sex

        public static void Createa_Sex(a_Sex a_Sex)
        {            
            try
            {
                a_SexDAO a_SexDAO = new a_SexDAO();
                a_SexDAO.Createa_Sex(a_Sex);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_Sex(a_Sex a_Sex)
        {            
            try
            {
                a_SexDAO a_SexDAO = new a_SexDAO();
                a_SexDAO.Updatea_Sex(a_Sex);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_Sex(int sexID)
        {            
            try
            {
                a_SexDAO a_SexDAO = new a_SexDAO();
                a_SexDAO.Deletea_Sex(sexID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_Sex Geta_Sex(int sexID)
        {            
            try
            {
                a_SexDAO a_SexDAO = new a_SexDAO();
                return a_SexDAO.Geta_Sex(sexID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_SexCollection Geta_SexList(a_SexColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_SexDAO a_SexDAO = new a_SexDAO();
                return a_SexDAO.Geta_SexList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_SexCollection Geta_SexList(a_SexColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_SexDAO a_SexDAO = new a_SexDAO();
                return a_SexDAO.Geta_SexList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}